Skip to content

MenuItem decomposition - wrapperStyle-only MenuItemWithTopDescription rows - #105621

Merged
roryabraham merged 3 commits into
mainfrom
claude-migrateWrapperStyleOnlyMenuItemWithTopDescription
Nov 2, 2026
Merged

roryabraham merged 3 commits into
mainfrom
claude-migrateWrapperStyleOnlyMenuItemWithTopDescription

Conversation

@MelvinBot

@MelvinBot MelvinBot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

This is the next Phase 3 batch. It covers the MenuItemWithTopDescription rows that need no new preset or prop, where the only thing to sort out is wrapperStyle. It moves 7 rows in 5 files to the existing MenuItemField preset. This is a pure refactor, so each row should render the same as before.

Mapping used:

  • description → name, title → value.
  • shouldShowRightIcon + interactive={cond} → onPress={cond ? fn : undefined}. The preset shows the chevron and hover state only when onPress is set, and it still runs callFunctionIfActionIsAllowed.
  • brickRoadIndicator → a <MenuItem.BrickRoadIndicator> child, the same way CertiniaExportPage does it.
  • wrapperStyle:
    • ph5, pv3, and pt3 are dropped. They equal the base row padding (popoverMenuItem is 20 horizontal, 12 vertical).
    • The mt3 and mb5 margins move to a wrapper View. MenuItemField doesn't forward style, and a margin outside the pressable lays out the same as one on it. This matches existing MenuItemField call sites.

Rows migrated:

File Row wrapperStyle
PolicyDistanceRatesSettingsPage.tsx Unit ph5 dropped, mt3 moves to a View
PolicyDistanceRatesSettingsPage.tsx Country ph5 dropped
PolicyDistanceRatesSettingsPage.tsx Commuter exclusions ph5 dropped, mt3 moves to a View
DynamicCategoryFlagAmountsOverPage.tsx Type ph5 dropped, mt3 moves to a View
DynamicWorkspaceViewTagsPage.tsx Custom tag name mb5 moves to a View
CertiniaAdvancedPage.tsx FX expense account ph5/pv3 dropped
PolicyCommuterExclusionsPage.tsx Default work arrangement ph5/pt3 dropped

The matching no-deprecated/MenuItemWithTopDescription entries in config/oxlint/oxlint.seatbelt.tsv are left as is. Per contributingGuides/LINTING.md, the lint job on main tightens that baseline after merge.

Left out on purpose: the other wrapperStyle rows override the base padding (pv2, ph4, p0, sectionMenuItemTopDescription), need a ref, or also need a prop with no leaf. Those need raw composition or a reviewer decision.

One small edge case: the Certinia row used to show a chevron even when policyID was missing and onPress was undefined. It now hides the chevron in that case, because the row can't be pressed.

Fixed Issues

$ #100312
PROPOSAL: #100312 (comment)

Tests

// TODO: The human co-author must fill out the tests you ran before marking this PR as "ready for review"
// Please describe what tests you performed that validates your changed worked.

  • Verify that no errors appear in the JS console

Offline tests

QA Steps

For each row below, verify the row looks the same as on production: label on top, value below, same left/right padding as nearby rows, and the same spacing above or below it.

Distance rates settings

  1. As a workspace admin, enable Distance rates in More features.
  2. Go to Workspace > Distance rates and click Settings.
  3. Verify the Unit row shows the current unit and a chevron. Click it and verify the unit selector opens.
  4. If the workspace currency supports it (for example, USD), turn on Auto-update government rate. Verify the Country row appears with the selected country and a chevron. Click it and verify the country selector opens.
  5. If your account has the commute exclusions beta, verify the Exclude commutes row shows its summary (for example, "No commute exclusion") and a chevron. Click it and verify the Exclude commutes page opens.
  6. Sign in as a member who can view this page but not edit it (for example, an Auditor). Verify the Unit and Country rows show no chevron and do nothing when clicked.

Exclude commutes: default work arrangement

  1. With the commute exclusions and work arrangements betas, go to Workspace > Distance rates > Settings > Exclude commutes.
  2. Select Exclude usual commute.
  3. Verify the Default work arrangement row appears under that option with its value (for example, "Office-based") and a chevron, with the same padding as on production.
  4. Click it and verify the work arrangement page opens.

Category "Flag amounts over"

  1. On a Control workspace, enable Rules in More features.
  2. Go to Workspace > Categories, open a category, and click Flag amounts over.
  3. Verify the Type row appears below the amount field with a gap above it, and shows a chevron.
  4. Click Type, choose a different type, and verify the row shows the new type.

Multi-level tags

  1. On a workspace with multi-level tags (import a multi-level tag spreadsheet), go to Workspace > Tags and click one of the tag levels.
  2. Verify the Custom tag name row shows the level name and a chevron, with a gap between it and the tag list below.
  3. Click it and verify the edit tag name page opens.
  4. Sign in as a member who can view but not edit tags. Verify the row shows no chevron and does nothing when clicked.

Certinia (only if a Certinia FFA test connection is available)

  1. Go to Workspace > Accounting > Certinia > Advanced.
  2. Verify the Currency conversion fee account row shows the selected account and a chevron. Click it and verify the account selector opens.
  3. If this setting has a sync error, verify the red dot indicator shows on the row.
  • Verify that no errors appear in the JS console

AI Tests

These ran locally and passed:

  • npm run typecheck
  • npm run lint on the changed files.
  • After merging main (which replaced ESLint with oxlint), tsc --noEmit passed again. The merge didn't change the four files in this PR.
  • npm run spell-changed
  • npm run react-compiler-compliance-check check <changed files>
  • oxfmt

For the PolicyCommuterExclusionsPage follow-up commit: npm run typecheck, npm run lint-changed, npm run spell-changed, and the React Compiler check passed. npm run lint-changed also reported 2 no-onyx-loading-status errors in WorkspaceCompanyCardReimbursablePage.tsx, which came in from main and isn't part of this PR. oxfmt wasn't run on that commit.

I couldn't run a web check of the migrated rows. The local dev web session rendered a blank page with no network traffic on both attempts, so none of the rows were reached. Jest and the Storybook smoke test were not run.

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I verified any copy / text that was added to the app is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If the PR adds or modifies the UI:
    • I asked an AI agent to review the changes for accessibility issues and addressed its findings.
    • I tested with a screen reader (VoiceOver on macOS) and verified all new/changed elements are reachable with a logical focus order.
    • I verified all new/changed elements have meaningful accessible names and roles.
    • I verified state changes are announced (e.g. checked/unchecked, expanded/collapsed, selected).
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari

…Field

Co-authored-by: Pujan Shah <Pujan92@users.noreply.github.com>
@MelvinBot
MelvinBot requested a review from a team November 2, 2026 14:04
@melvin-bot melvin-bot Bot added Melvin-Test-Android Melvin-Test-Web Triggers Melvin to run the testing steps of the PR on web labels Nov 2, 2026
@MelvinBot

Copy link
Copy Markdown
Contributor Author

I created this PR from an upstream branch since I don't have push access to your fork.

To take ownership of this branch and be able to push updates, run:

git remote add upstream https://github.com/Expensify/App.git
git fetch upstream claude-migrateWrapperStyleOnlyMenuItemWithTopDescription
git checkout -b claude-migrateWrapperStyleOnlyMenuItemWithTopDescription upstream/claude-migrateWrapperStyleOnlyMenuItemWithTopDescription
git push -u origin claude-migrateWrapperStyleOnlyMenuItemWithTopDescription

Then you can close this PR and open a new one from your fork.

@codecov

codecov Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.

Files with missing lines Coverage Δ
...es/workspace/tags/DynamicWorkspaceViewTagsPage.tsx 58.18% <100.00%> (-0.26%) ⬇️
...ounting/certinia/advanced/CertiniaAdvancedPage.tsx 0.00% <0.00%> (ø)
...ace/distanceRates/PolicyCommuterExclusionsPage.tsx 0.00% <0.00%> (ø)
.../categories/DynamicCategoryFlagAmountsOverPage.tsx 0.00% <0.00%> (ø)
.../distanceRates/PolicyDistanceRatesSettingsPage.tsx 0.00% <0.00%> (ø)
... and 25 files with indirect coverage changes

@MelvinBot

MelvinBot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Web test steps verification results: ⚠️ partial

The PR's Tests section is still a TODO, so I tested each row from the "Rows migrated" table. Unit, Country, and Custom tag name look and work as before: each shows its label, value, and chevron, and opens the right page. Commuter exclusions, the Flag amounts "Type" row, and Certinia FX expense account could not be reached on this test account, so they are untested. No step failed.
Certinia connect dialog

Step Status
1. Distance rates > Settings: "Unit" row shows label, value, and chevron, with top spacing, and opens the unit selectorThe row shows "Unit" / "Miles" with a chevron and top spacing. Pressing it opens the Unit selector (Miles/Kilometers).
Distance rates Settings page with Unit rowUnit selector opened from Unit row
✅
2. Distance rates > Settings: "Country" row shows label, value, and chevron, and opens the country selectorThe row only appears for a shared-currency workspace, so I set the currency to EUR and turned on "Auto-update government rate" (Control plan). The row shows "Country" / "Germany" with a chevron and correct spacing. Pressing it opens the Country selector.
Settings page with Country row set to GermanyCountry selector opened from Country row
✅
3. Distance rates > Settings: "Commuter exclusions" row shows label, summary, and chevron, and opens the commuter exclusions pageNot reachable. The row is behind the COMMUTER_EXCLUSIONS beta, which this test account does not have. The Settings page goes from "Require GPS or map entry" straight to "Track tax".
Settings page without Commuter exclusions row
⚠️
4. Category > Flag amounts over page: "Type" row shows label, value, and chevron, and opens the expense limit type selectorNot reachable. No in-app link opens DynamicCategoryFlagAmountsOverPage. You can only reach it by adding /flag-amounts to a category settings URL, and the test harness blocks direct URL navigation. The screenshots show the category rule "Flag for review > Amount" page instead. That page lists the Type options inline and is not changed by this PR.
Category rule Amount page with inline Type listCategory rule Type switched to Category total
⚠️
5. Tags settings: "Custom tag name" row shows label, value, and chevron, with spacing below, and opens the edit pageWorkspace > Tags > More shows "Custom tag name" / "Tag" with a chevron and spacing before the next options. Pressing it opens the Custom tag name edit page with "Tag" filled in.
Tags settings with Custom tag name rowCustom tag name edit page
✅
6. Accounting > Certinia > Advanced: "FX expense account" row shows label, value, and chevronNot reachable. This row needs a Certinia FFA connection, which needs real Certinia credentials through an external OAuth flow. Testing stopped at the connect dialog.
Certinia connect dialog
⚠️
7. No new JS console errors on these pagesThe web test tool cannot read the browser console, so I could not check it. No error indicators, broken layouts, blank panes, or crash screens appeared on any page I visited.
⚠️

view run · view recording

@MelvinBot

MelvinBot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Android test steps verification results: ⚠️ partial

The PR's Tests section is still a TODO, so I tested each row from the "Rows migrated" table. Unit, Country, and Custom tag name look and work as before. Commuter exclusions, the Flag amounts "Type" row, and Certinia FX expense account could not be reached on this test account, so they are untested. No step failed.
Custom tag name edit page

Step Status
1. Distance rates > Settings: "Unit" row shows label, value, and chevron, with top spacing, and opens the unit selectorThe row shows "Unit" / "Miles" with a chevron. Tapping it opens the Unit selector with Miles checked.
Distance rates Settings page with Unit rowUnit selector opened from Unit row
✅
2. Distance rates > Settings: "Country" row shows label, value, and chevron, and opens the country selectorWith the workspace set to EUR / Germany, the row shows "Country" / "Germany" with a chevron. Tapping it opens the Country selector with Germany selected.
Settings page with Country row set to GermanyCountry selector opened from Country row
✅
3. Distance rates > Settings: "Commuter exclusions" row shows label, summary, and chevron, and opens the commuter exclusions pageNot reachable. The row is behind a beta that this test account does not have, so it did not appear on the Settings page.
⚠️
4. Category > Flag amounts over page: "Type" row shows label, value, and chevron, and opens the expense limit type selectorNot reachable. No in-app link opens this page; you can only reach it by adding /flag-amounts to a category settings route. The test environment can't open deep links on Android.
⚠️
5. Tags > More: "Custom tag name" row shows label, value, and chevron, with spacing below, and opens the edit pageThe row shows "Custom tag name" / "Tag" with a chevron, above "Show GL codes when selecting a tag". Tapping it opens the Custom tag name edit page with "Tag" filled in.
Tag settings with Custom tag name rowCustom tag name edit page
✅
6. Accounting > Certinia > Advanced: "FX expense account" row shows label, value, and chevronNot reachable. This row needs a real Certinia connection, and setup needs external Salesforce/Certinia credentials.
⚠️
7. No crash, red box, or error screen on these pagesNo crash, red box, or error screen appeared on any page I visited.
✅

view run · view recording

@Pujan92

Pujan92 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot merge main and fix conflicts. Also add qa steps in the pr description

…StyleOnlyMenuItemWithTopDescription

Co-authored-by: Pujan Shah <Pujan92@users.noreply.github.com>

# Conflicts:
#	config/eslint/eslint.seatbelt.tsv
@MelvinBot

Copy link
Copy Markdown
Contributor Author

I merged main and fixed the conflict, and the PR can be merged again. I also added QA steps to the description.

Conflict: main removed ESLint and deleted config/eslint/eslint.seatbelt.tsv. This PR had edited that file, so I accepted the deletion. I didn't edit the new config/oxlint/oxlint.seatbelt.tsv, because the lint job on main tightens it after merge. The four source files merged cleanly, and tsc --noEmit still passes.

QA steps: These cover each migrated row: Distance rates settings, the Category Flag amounts over page, Multi-level tags, and Certinia Advanced (only if a test connection is available). Each check confirms the value, chevron, spacing, and navigation, plus the read-only state where it applies.

@MelvinBot

Copy link
Copy Markdown
Contributor Author

The failing Oxlint check is unrelated to this PR, so I didn't push a fix.

Analysis: Oxlint reports 2 rulesdir/no-onyx-loading-status errors in src/pages/workspace/companyCards/WorkspaceCompanyCardReimbursablePage.tsx:88. That file is not in this PR. The same call to isLoadingOnyxValue is on main, and Oxlint check is failing on many other open PRs too.

Fix in progress: [No QA] Stop reading Onyx loading status on the company card Reimbursable page removes that call. After it merges, merge main into this branch or re-run the check.

The other non-passing checks are Check independent approval, which needs a review, and pending jobs.


view run

@Pujan92

Pujan92 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot mark pr ready for review

@MelvinBot
MelvinBot marked this pull request as ready for review November 2, 2026 20:07
@MelvinBot
MelvinBot requested a review from a team as a code owner November 2, 2026 20:07
@melvin-bot
melvin-bot Bot requested a review from Pujan92 November 2, 2026 20:07
@MelvinBot

Copy link
Copy Markdown
Contributor Author

This PR is now marked as ready for review.

@melvin-bot
melvin-bot Bot removed the request for review from a team November 2, 2026 20:07
@melvin-bot

melvin-bot Bot commented Nov 2, 2026

Copy link
Copy Markdown

@Pujan92 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot
melvin-bot Bot requested review from dylanexpensify and removed request for a team November 2, 2026 20:07
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T20:13:28.065510Z 3806b78 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Pujan92

Pujan92 commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: HybridApp
Android: mWeb Chrome
iOS: HybridApp
iOS: mWeb Safari
MacOS: Chrome / Safari Screenshot 2026-11-03 at 02 02 04
Screen.Recording.2026-11-03.at.02.00.14.mov
Screen.Recording.2026-11-03.at.01.56.15.mov

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3806b78c9c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

<MenuItemField
name={translate('workspace.certinia.fxExpenseAccount')}
value={selectedFxExpenseAccountName}
onPress={!policyID ? undefined : () => Navigation.navigate(createDynamicRoute(DYNAMIC_ROUTES.POLICY_ACCOUNTING_CERTINIA_FX_EXPENSE_ACCOUNT.path))}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add a Sentry label to the FX account row

When an administrator opens the FX expense-account selector, this modified interactive MenuItemField has no sentryLabel, so its web interaction cannot be identified by the required Sentry/FullStory label. Add a stable entry from CONST.SENTRY_LABEL for this action.

AGENTS.md reference: AGENTS.md:L76-L77

Useful? React with 👍 / 👎.

@Pujan92 Pujan92 Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No sentryLabel is configured for this item in the main

<MenuItemField
name={translate('common.type')}
value={translate(`workspace.rules.categoryRules.expenseLimitTypes.${expenseLimitType}`)}
onPress={() => Navigation.navigate(createDynamicRoute(DYNAMIC_ROUTES.EXPENSE_LIMIT_TYPE_SELECTOR.path))}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add a Sentry label to the expense type row

When an administrator opens the expense-limit type selector, this modified interactive MenuItemField has no sentryLabel, leaving the press without the required Sentry/FullStory identifier. Add a stable entry from CONST.SENTRY_LABEL for this action.

AGENTS.md reference: AGENTS.md:L76-L77

Useful? React with 👍 / 👎.

<MenuItemField
name={translate('workspace.distanceRates.commuterExclusions.title')}
value={getCommuterExclusionsSummary(policy?.commuterExclusions, defaultUnit, translate)}
onPress={() => Navigation.navigate(ROUTES.WORKSPACE_DISTANCE_RATES_COMMUTER_EXCLUSIONS.getRoute(policyID))}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add a Sentry label to the commuter exclusions row

When an administrator opens the commuter-exclusions page, this modified interactive MenuItemField lacks a sentryLabel, so the navigation press is not available under the repository's required Sentry/FullStory label. Add a stable entry from CONST.SENTRY_LABEL.

AGENTS.md reference: AGENTS.md:L76-L77

Useful? React with 👍 / 👎.

<MenuItemField
name={translate(`workspace.tags.customTagName`)}
value={getCleanedTagName(currentPolicyTag.name)}
onPress={canWriteTags ? navigateToEditTag : undefined}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add a Sentry label to the custom tag name row

When a user with tag write access opens the tag-name editor, this modified interactive MenuItemField has no sentryLabel, preventing the press from receiving the required Sentry/FullStory identifier. Add a stable entry from CONST.SENTRY_LABEL for this action.

AGENTS.md reference: AGENTS.md:L76-L77

Useful? React with 👍 / 👎.

…enuItemField

Co-authored-by: Pujan Shah <Pujan92@users.noreply.github.com>
@MelvinBot
MelvinBot requested a review from a team as a code owner November 2, 2026 20:21
@melvin-bot
melvin-bot Bot requested review from roryabraham and removed request for a team November 2, 2026 20:21
@melvin-bot

melvin-bot Bot commented Nov 2, 2026

Copy link
Copy Markdown

@roryabraham Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

1 similar comment
@melvin-bot

melvin-bot Bot commented Nov 2, 2026

Copy link
Copy Markdown

@roryabraham Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@Pujan92 Pujan92 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@roryabraham
roryabraham merged commit 500b41d into main Nov 2, 2026
46 of 48 checks passed
@roryabraham
roryabraham deleted the claude-migrateWrapperStyleOnlyMenuItemWithTopDescription branch November 2, 2026 20:46
@OSBotify

OSBotify commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

🚧 roryabraham has triggered a test Expensify/App build. You can view the workflow run here.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

@OSBotify

OSBotify commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/roryabraham in version: 9.5.31-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 failure ❌
🍎 iOS 🍎 success ✅

@MelvinBot

Copy link
Copy Markdown
Contributor Author

No help site update needed — this PR refactors existing settings rows without adding a workflow, changing labels, or making existing instructions incorrect.

@OSBotify

OSBotify commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/roryabraham in version: 9.5.31-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify

OSBotify commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/blimpich in version: 9.5.31-4 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Melvin-Test-Android Melvin-Test-Web Triggers Melvin to run the testing steps of the PR on web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants